package com.my;

import com.my.client.MyRpc;

public class MyConsumer {
    public static void main(String[] args) {
        UserService userService = MyRpc.createByJdkProxy(UserService.class, "http://localhost:8076/invoke");
        User user = userService.queryById(1);
        System.out.println("返回的user是：" + user);
    }
}
